package entity;

import com.example.a513.R;

import java.util.ArrayList;
import java.util.List;

public class Animation {
    private int pic;
    private String title;
    private String description;

    private static int []pics = new int[] {R.mipmap.aa,R.mipmap.bb,R.mipmap.cc,R.mipmap.dd,R.mipmap.da};
    private static String[] titles = new String[] {"皮卡丘","cartoon","window","哆啦","llll"};

    private static String []descriptions = new String[] {
            "niunschdnndsjcdfnvcjuederer",
            "fvdsfbverbgtergbebv",
            "ssoownb rieoisonfniwref",
            "asjocnjdsdfioseninbvbre",
            "vcwsvgeorenioe7896"
    };
    public static List<Animation> getDefault(){
        List<Animation> animations = new ArrayList<>();
        for ( int i = 0; i < pics.length; i++){
            Animation animation = new Animation();
            animation.pic = pics[i];
            animation.description = descriptions[i];
            animation.title = titles[i];
            animations.add(animation);
        }
        return animations;
    }

    @Override
    public String toString() {
        return "Animation{" +
                "pic=" + pic +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                '}';
    }

    public int getPic() {
        return pic;
    }

    public String getTitle() {
        return title;
    }

    public String getDescription() {
        return description;
    }

    public void setPic(int pic) {
        this.pic = pic;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
